package edu.usmp.p2.model.repository;

import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.Query;
import edu.usmp.p2.disfraz.model.Pago;
import edu.usmp.p2.disfraz.model.Pedido;

public class PagoRepository implements Entity<Pago> {
	private EntityManager em;
	private Pago pago;
	
	public Pago getPago() {
		return pago;
	}
	public void setPago(Pago pago) {
		this.pago = pago;
	}
	public PagoRepository (EntityManager em) {
		
		this.em = em;
	}
	
	public Pago insert(Pago t) {
		em.persist(t);

		return t;
		
	}
	
	public void update(Pago t) {
		em.merge(t);
	}
	
	public void delete(Pago t) {
		// TODO Auto-generated method stub
		
	}
	
	public Pago findById(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	public Pago findById(Pago t) {
		// TODO Auto-generated method stub
		return null;
	}
	
	public List<Pago> listAll() {
		// TODO Auto-generated method stub
		return null;
	}
	
	public List<Pago> listByCustomCriteria(Object... objects) {
		// TODO Auto-generated method stub
		return null;
	}

}
